package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestCheckBase;
import gao.xiaolei.entity.TestRequirementCheck;
import lombok.Data;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@Data
public class TestReqCheckCopy extends TestCheckBase {

    public TestReqCheckCopy(TestRequirementCheck trqCheck) {
        super(trqCheck.getId(), trqCheck.getTargetId(), trqCheck.getCheckMan(), trqCheck.getAnnotate(), trqCheck.getIsPass(), trqCheck.getIsFinish(), trqCheck.getCheckDate(),trqCheck.getProjectId());
    }

    public TestReqCheckCopy(String id, int isPass, String checkMan,
                                int isFinish, LocalDateTime checkDate) {
        super();
        this.id = id;
        this.checkMan = checkMan;
        this.isPass = isPass;
        this.checkDate = checkDate;
        this.isFinish = isFinish;
    }

    public TestReqCheckCopy() {
    }
}
